<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="org.jeecgframework.web.util.StaticValue" %>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="org.jeecgframework.web.system.pojo.base.CbsServiceLogEntity" %>
<%@include file="/context/mytags.jsp"%>
<html>
<head>
    <title>技术支持完工单</title>
    <t:base type="jquery,easyui,tools,DatePicker"></t:base>
    <link rel="stylesheet" href="plug-in/uploadify/css/uploadify.css" type="text/css" />
    <script type="text/javascript" src="plug-in/uploadify/jquery.uploadify-3.1.min.js"></script>
    <script type="text/javascript" src="plug-in/ckfinder/ckfinder.js"></script>
</head>
<script>
    function lookBackImg(obj) {
        //alert(id)
       addOneTab('预览','cbsServiceController.do?openViewFile&fileid='+obj.id)
    }
</script>
<body>
<c:if test="${empty techologyAgree}">
    <div style="font-size: 20px;color: black"> ${fail}</div>
</c:if>
<c:if test="${not empty techologyAgree}">
<div style="margin-bottom:10px;">
   <%-- <div style="text-align: center; width: 100%; ">
        <a href="#" class="easyui-linkbutton l-btn" onclick="sub()">关闭</a>
    </div>--%>
</div>
<form id="dataForm" name="dataForm" action="" method="post">
<div class="subtitle">
    <p>完工报告</p>
    <table class="nobordertable noborder">

        <input id="serviceId" hidden="hidden" name="serviceId" value="${techologyAgree.serviceId.id}">
        <input id="techologyAgreeId" hidden="hidden" name="serviceId" value="${techologyAgree.id}">
        <tbody>
        <tr>
            <td class="al_r" width="20%">
                <label>预计上门时间:</label>
            </td>
            <td width="30%">
                <fmt:formatDate value="${techologyAgree.orderTime}" type="date" pattern="yyyy-MM-dd"></fmt:formatDate>
            </td>
            <td class="al_r" width="20%">
                <label>实际上门时间:</label>
            </td>
            <td width="30%">
                <fmt:formatDate value="${techologyAgree.actualTime}" type="date" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%">
                <label>上门次数:</label>
            </td>
            <td width="30%">
                ${techologyAgree.sceneTotal}次
            </td>
            <td class="al_r" width="20%">
                <label>服务完工时间:</label>
            </td>
            <td width="30%">
                <fmt:formatDate value="${techologyAgree.finishTime}" type="date" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%" valign="top">
                <label>影院名称:</label>
            </td>
            <td width="30%" valign="top">
                ${techologyAgree.cinemaName}
            </td>
            <td class="al_r" width="20%" valign="top">
                <label>影院地址:</label>
            </td>
            <td width="30%" valign="top">
                <select name="province" style="width:100px" id="province" onchange="getCity()">
                            <option >${techologyAgree.sheng.territoryName}</option>
                </select>
                <select style="width:100px" id="city" name="city">
                            <option>${techologyAgree.shi.territoryName}</option>
                </select>
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%">
                <label>所属院线:</label>
            </td>
            <td width="30%">
                ${techologyAgree.typeIntheaterName}
            </td>
            <td class="al_r" width="20%">

            </td>
            <td width="30%">
                    ${techologyAgree.address}
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%">
                <label>联系人:</label>
            </td>
            <td width="30%">
                ${techologyAgree.contactsName}
            </td>
            <td class="al_r" width="20%">
                <label>电话:</label>
            </td>
            <td width="30%">
                ${techologyAgree.phone}
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%">
                <label>放映机序列号:</label>
            </td>
            <td width="30%">
                ${techologyAgree.sn}
            </td>
            <td class="al_r" width="20%">
                <label>放映机型号:</label>
            </td>
            <td width="30%">
                ${techologyAgree.equipmentType.typeDesc}
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%">
                <label>派单要求:</label>
            </td>
            <td colspan="3">
                ${techologyAgree.assignDes}
            </td>
        </tr>
        </tbody>
    </table>
    <div class="line"></div>
    <div style="text-align: center; font-weight: bold;font-size:17px;">现场信息记录</div>
    <table class="nobordertable noborder">
        <tbody>
        <tr>
            <td class="al_r" width="20%">
                <label>现场附件:</label>
            </td>
            <td colspan="3">
                <c:forEach items="${fileList}" var="file">
                    <input id="filePicId"${file.id} name="fileName" hidden="hidden" value="${file.id}'">
                    <%--<span class="color-blue" id="${file.id}" <c:if test="${fn:contains(file.oldFileName,'.png')||fn:contains(file.oldFileName,'.jpg')}">onclick="lookBackImg(this)"</c:if> name="fileNames">${file.oldFileName}</span>--%>
                    <a style="color: blue;text-decoration: underline" href="fileUploadController.do?downLoadFile&fileLogId=${file.id}">${file.oldFileName}</a>&emsp;
                </c:forEach>
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%">
            </td>
            <td colspan="3">
                <span class="color-red">根据派单要求不同，可上传照片、邮件、压缩包。</span>
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%" valign="top">
                <label>现场服务描述:</label>
            </td>
            <td colspan="3">
                <textarea style="width: 100%; height: 60px;" id="serviceDes" readonly="readonly">${techologyAgree.serviceDes}</textarea>
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%" valign="top">
                <label>备注:</label>
            </td>
            <td colspan="3">
                <textarea style="width: 100%; height: 60px;" id="memo" readonly="readonly">${techologyAgree.memo}</textarea>
            </td>
        </tr>
        </tbody>
    </table>
</div>
</form>
</c:if>
</body>
</html>
